package com.gok.kanmeituyun2.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;

import com.github.chrisbanes.photoview.PhotoView;
import com.gok.kanmeituyun2.R;
import com.gok.kanmeituyun2.util.image.ImageUtil;

public class DetailsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detais);

        //转型
        ImageView pv = findViewById(R.id.pv);

        Intent intent = getIntent();
        String url = intent.getStringExtra("img_id");

        //显示图片
        ImageUtil.show(this, url,pv);
    }
}